package com.zx.idc.backend.gui.api.management.scheduler.job;

import com.zx.idc.backend.gui.api.management.infosecurity.activeresources.service.ActiveResourceService;
import com.zx.idc.common.spring.SpringBeanUtil;
import org.quartz.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 11.17 活跃资源主动上报 一天一次
 */
@PersistJobDataAfterExecution
@DisallowConcurrentExecution
public class ReportActiveResourceJob implements Job {
    private static final Logger LOG = LoggerFactory.getLogger(ReportActiveResourceJob.class);


    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        ActiveResourceService activeResourceService = SpringBeanUtil.getBean(ActiveResourceService.class);
        activeResourceService.activeResources();
        LOG.info("活跃资源主动上报job执行成功");
    }
}
